<div *ngIf="hero">
    <h2>{{hero.name}} details!</h2>
    <div><label>id: </label>{{hero.id}}</div>
    <div>
        <label>name: </label>
        <input [(ngModel)]="hero.name" placeholder="name"/>
    </div>

    <button nz-button [nzType]="'primary'" (click)="goBack()">
        <span>Back</span>
    </button>

    <button nz-button [nzType]="'default'" (click)="save()">
        <span>Save</span>
    </button>
</div>
